<div class="grid-header mt15 grid-header-left-line" style="position: relative; margin-bottom: 10px;">
    <div class="clearfix" style="padding-bottom:4px;">
        <span class="fl f14 lh30 text-indent">微信公众号登录授权</span>
    </div>
    <div class="tab-bottom-line"></div>
</div>

<form name="gzh_basic_info_form" novalidate>
    <div class="mt15 clearfix" style="position: relative;padding-bottom: 20px;">
        <div class="fl w100 pt16"><em class="c-red">*&nbsp;</em>所属组织：</div>

        <div class="fl pt12">
            <div class="fl select mr10" style="width:400px;">
                                <span class="select-border js-select">
                                    <input class="select-text" type="text" readonly ng-click="toggleTreeCombo()"
                                           ng-model="belongsOrganization.name"
                                           name="belongsOrganization_name" required/>
                                    <span class="select-icon"><i class="select-icon-arrow"></i></span>
                                </span>

                <div id="tree_table" ng-show="isTreeCollapse">加载中...</div>
            </div>
            <div class="fl mr10"
                 data-ng-messages="gzh_basic_info_form.belongsOrganization_name.$error"
                 ng-show="gzh_basic_info_form.$submitted || gzh_basic_info_form.belongsOrganization_name.$touched">
                <p class="c-red lh30" ng-message="required">所属组织不能为空。</p>
            </div>
        </div>

        <div class="tab-bottom-line" style="border:1px dashed #dcdcdc; "></div>
    </div>

    <div class="clearfix mt20 row">
        <div class="col-md-2 w100">一键绑定：</div>

        <div class="col-md-10">
            <div ng-hide="!data.wxname" class="pt20">
                <div class="clearfix">
                    <div class="fl w100 pt16">公众号名称：</div>
                    <div class="fl pt12">
                        <input type="text" class="input-text fl mr10 w400" placeholder="您的公众号名称"
                               name="wx_name"
                               ng-model="data.wxname" required maxlength="20" disabled>
                    </div>
                </div>
                <div class="clearfix">
                    <div class="fl w100 pt16">原始ID：</div>
                    <div class="fl pt12">
                        <input type="text" class="input-text fl mr10 w400"
                               ng-model="data.wxid" placeholder="您的公众平台ID，如：gh_4343d72a21" required
                               name="wx_id"
                               maxlength="20" disabled>
                    </div>
                </div>
                <div class="clearfix">
                    <div class="fl w100 pt16">微信号：</div>
                    <div class="fl pt12">
                        <input type="text" name="wei_xin" class="input-text fl mr10 w400"
                               ng-model="data.weixin" maxlength="20"
                               disabled>
                    </div>
                </div>
                <div class="clearfix">
                    <div class="fl w100 pt16">微信号类型：</div>
                    <div class="fl pt12">
                        <div class="fl" ui-combobox data="winXinType.typeList" text-field="text"
                             value-field="value"
                             ng-model="data.winxintype" style="width:400px;" required name="winxintype"
                             ng-disabled="true"></div>
                    </div>
                </div>
                <div class="clearfix">
                    <div class="fl w100 pt16">AppID：</div>
                    <div class="fl pt12">
                        <input type="text" name="app_id"
                               class="input-text fl mr10 w400"
                               ng-model="data.appid" placeholder="只有服务号和认证订阅号需要填写" maxlength="32" disabled>
                    </div>
                </div>

                <div class="clearfix">
                    <div class="fl w100 pt16">AppSecret：</div>
                    <div class="fl pt12">
                        <input type="text" name="app_secret"
                               class="input-text fl mr10 w400"
                               ng-model="data.appsecret" required placeholder="只有服务号和认证订阅号需要填写">
                        <div class="fl mr10"
                             data-ng-messages="gzh_basic_info_form.app_secret.$error"
                             ng-show="gzh_basic_info_form.$submitted || gzh_basic_info_form.app_secret.$touched">
                            <p class="c-red lh30" ng-message="required">Appsecret不能为空。</p>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pt20 clearfix">
                <a class="fl" ng-click="redirectWechatAuth($event)" href="javascript:;">
                    <img src="/public/images/icon/icon_login_auth.png">
                </a>

                <span class="fl mt10 ml10" data-ng-messages="gzh_basic_info_form.wx_name_hidden.$error"
                      ng-show="gzh_basic_info_form.$submitted || gzh_basic_info_form.wx_name_hidden.$touched">
                    <span class="c-red lh30" ng-message="required">请授权公众号。</span>
                </span>

                <input type="hidden" ng-model="data.wxname" required name="wx_name_hidden">
            </div>
            <div class="pt20 tips-list clearfix" style="margin-left:0px;color: orange;">
                <label class="checkbox"><input type="checkbox" ng-model="read_flag" ng-click="read_flag_tip = !read_flag" required name="read_flag">
                    <span>已阅提示  温馨提示：请使用服务号，订阅号无法使用云客应用完整的功能</span>
                </label>
            </div>
            <div class="clearfix mt10" ng-show="read_flag_tip">
                        <span class="c-red lh30">请确认已阅提示内容。</span>
                    </div>

            <p class="mt20">您将进入腾讯的微信公众号登录授权页面，您需要输入微信公众号账号密码，并需要管理员以扫码的方式授权登录，将微信公众号授权给明源云客平台，完成一键配置。 </p>

            <p class="mt20"><span class="c-red">*</span> 只有将全部接口和功能授权给明源云客平台，才能完整使用平台功能。</p>
        </div>
    </div>

    <button type="submit" class="hide" id="first_step_next" style="display: none;"></button>
</form>